package com.atguigu.dga230301.governance.demo;

import lombok.Data;

public class Test {
    public static void main(String[] args) {
       /* Student student = new Student();
        String zs = "zs";
        student.setName(zs);
        student.setAge(18);
        String s = "zs";

        //== 对比的是地址值
        System.out.println(zs == s);
        if (student.getName()== s){
            student.setAge(20);
        }

        System.out.println(student);*/

        String s = "gmall";
        for (String s1 : s.split(",")) {
            System.out.println(s1);
        }
    }

    @Data
    public static class Student{
        private String name;
        private Integer age;
    }
}
